﻿<%@ Page Language="VB" MasterPageFile="~/WebForm/MasterPage.master" ValidateRequest="false"
    AutoEventWireup="false" CodeFile="ManageRetailPrice.aspx.vb" Inherits="WebForm_ManageRetailPrice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
      function JHshNumberText()   
      {   
          if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))   
          {   
                window.event.keyCode=0;   
          }   
      }   
    </script>

<asp:UpdatePanel ID="up" runat="server" UpdateMode="conditional">
    <contenttemplate>
    <asp:Panel ID="panel1" runat="server" Style="cursor: move;">
        <br />
        <div align="center">
            <asp:Label ID="lblTitle" Font-Bold="true" runat="server" Text="<%$ Resources:Title %>"
                SkinID="title"></asp:Label>
        </div>
        <div style="background-color: #351D26">
            <table width="100%">
                <tr>
                    <td>
                        <fieldset id="FIELDSET1" style="border-color: #4E333B" runat="server">
                            <legend class="white2">
                                <asp:Literal ID="Literal1" runat="server" Text="Query" />
                            </legend>
                            <asp:Label ID="lblDivision" runat="server" Text="<%$ Resources:lblDivision %>"></asp:Label>
                            <asp:DropDownList ID="ddlDivision" runat="server" AutoPostBack="True">
                            </asp:DropDownList>
                            <asp:Label ID="lblSignature" runat="server" Text="<%$ Resources:lblSignature %>"></asp:Label>
                            <asp:DropDownList ID="ddlSignature" runat="server" AutoPostBack="True">
                            </asp:DropDownList>
                            <asp:Button ID="btnQuery" runat="server" Text="<%$ Resources:Query %>" />
                            &nbsp;
                            <input type="button" id="btnOpen" visible="false" class="button2" runat="server"
                                value="Query" onclick='openQuery();' />
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fieldset id="FIELDSET2" style="border-color: #4E333B" runat="server">
                            <legend class="white2">
                                <asp:Literal ID="Literal2" runat="server" Text="List" />
                            </legend>
                            <My:MyGridView ID="gv" runat="server" AllowHoverEffect="True" AllowPaging="false"
                                AllowHoverSelect="false" TotalRowCount="0" AutoGenerateColumns="False" SkinID="pager"
                                DataKeyNames="Division,Signature" RowStyle-HorizontalAlign="Center">
                                <Columns>
                                    <asp:BoundField DataField="Division" HeaderText="<%$ Resources:Division %>" SortExpression="Division"
                                        ReadOnly="True" />
                                    <asp:BoundField DataField="SignatureText" HeaderText="<%$ Resources:gvSignature %>"
                                        SortExpression="SignatureText" ReadOnly="True" />
                                    <asp:TemplateField HeaderText="<%$ Resources:Coefficient %>" SortExpression="Coefficient">
                                        <itemtemplate>
                                            <asp:TextBox ID="txtCoefficient" runat="server" onkeypress="JHshNumberText()"
                                            Text='<%# Eval("Coefficient") %>' MaxLength="50" Width="40px"></asp:TextBox>
                                        </itemtemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </My:MyGridView>
                        </fieldset>
                    </td>
                </tr>
                <tr align="center">
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="<%$ Resources:btnSave %>"></asp:Button>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    </contenttemplate>
</asp:UpdatePanel>
</asp:Content>
